package com.service.impl;

import com.bean.CommentContent;
import com.mapper.CommentContentMapper;
import com.service.CommentContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentContentServiceImpl  implements CommentContentService {

    @Autowired
    private CommentContentMapper commentContentMapper;


    @Override
    public int addToComment(CommentContent commentContent) {
        return commentContentMapper.addToComment(commentContent);
    }

    @Override
    public List<CommentContent> selectCommentContent(String relationid) {

        List<CommentContent> c=   commentContentMapper.selectCommentContent(relationid);
        return c;
    }




    /*
      添加评论
     */

    /*
      查询评论
     */
}
